package com.briup.service.impl;

import com.briup.bean.Category;
import com.briup.dao.CategoryMapper;
import com.briup.service.ICategoryService;
import com.briup.util.MyBatisSqlSessionFactory;

import java.util.List;

public class ICategoryServiceImpl implements ICategoryService {
    private CategoryMapper categoryMapper;

    {
        categoryMapper = MyBatisSqlSessionFactory.openSession().getMapper(CategoryMapper.class);
    }

    //查找所有分类信息
    @Override
    public List<Category> findAllCategorys() {
        return categoryMapper.findAllCategorys();
    }
}